package day10;

//本类使用是用来测试接口的演示demo
public class Test03 extends InterImpl implements Inter,aa {
    public static void main(String[] args) {
        //接口不允许实例化创建对象

        //多态形式创建对象---不常用
        Inter i = new InterImpl();
        i.sleep();
        i.study();


        //之间创建实现类对象
        Inter i1 = new InterImpl();
        i1.sleep();
        i1.study();


    }
}




